<?php namespace App\Model;

use Illuminate\Database\Eloquent\Model;

class BaseModel extends Model {

    public $timestamps = false;
	//
    /**
     * 获取所需字段
     * @param array $select
     * @return null /object
     */
    protected static function getSelectField($select){
        if(is_array($select) && !empty($select)){
            return $select;
        }
        return "*";
    }
}
